package com.example.administrator.dc.Bean;

import com.google.gson.Gson;

import org.json.JSONException;
import org.json.JSONObject;

import java.util.List;

/**
 * Created by Administrator on 2017/8/30.
 */

public class MyFollow {

    /**
     * status : 1
     * message : 获取用户关注列表成功!
     * data : [{"fanid":122,"uid":30,"followid":46,"aliasname":"刘轩赫","gender":0,"pic":"20161226151726485.jpg","city":"盘锦","school":"大连东软信息学院","followpic":"http://www.yiroote.com/Public/Uploads/photos/20161226151726485.jpg"},{"fanid":118,"uid":30,"followid":45,"aliasname":"刘轩赫","gender":0,"pic":"20161226151726485.jpg","city":"盘锦","school":"大连东软信息学院","followpic":"http://www.yiroote.com/Public/Uploads/photos/20161226151726485.jpg"}]
     */

    private int status;
    private String message;
    private List<MyfollowDatas> data;

    public static MyFollow objectFromData(String str, String key) {

        try {
            JSONObject jsonObject = new JSONObject(str);

            return new Gson().fromJson(jsonObject.getString(str), MyFollow.class);
        } catch (JSONException e) {
            e.printStackTrace();
        }

        return null;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setData(List<MyfollowDatas> data) {
        this.data = data;
    }

    public int getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }

    public List<MyfollowDatas> getData() {
        return data;
    }


}
